require File.join(File.dirname(__FILE__), 'clock')

class Message
   attr_reader :clock, :content, :processId
   
   #Constructeur
   #    clock : Vector clock du message
   #    content : Contenu du message
   def initialize(processId, clock, content)
      raise "Message.initialize : first parameter must be an Integer" unless processId.is_a?(Integer)
      raise "Message.initialize : second parameter must be a Clock" unless clock.is_a?(Clock)
      raise "Message.initialize : third parameter must be a String" unless content.is_a?(String)
      
      @processId = processId
      @clock = clock
      @content = content
   end
end 
